
from django.shortcuts import redirect, reverse, render
from django.http import HttpResponse

# def index(request):
#     # ?username = XXX
#     username = request.GET.get('username')
#     if username:
#         return HttpResponse('前台首页')
#     else:
#         return redirect(reverse('front:login'))

def index(request):
    return render(request, 'base.html')

def login(request):
    return HttpResponse('前台登录页面')